package _993KongDuiXiang;

import _993KongDuiXiang.factory.CustomerFactory;

/**
 * @Test: 空对象模式 测试类
 * @author: ZBoHang
 * @time: 2021/9/17 16:49
 */
class Test {
    public static void main(String[] args) {

        AbstractCustomer rob = CustomerFactory.getCustomer("Rob");
        AbstractCustomer bob = CustomerFactory.getCustomer("Bob");
        AbstractCustomer julie = CustomerFactory.getCustomer("Julie");
        AbstractCustomer laure = CustomerFactory.getCustomer("Laure");

        System.out.println("@@@@@@@@");
        System.out.println(rob.getName());
        System.out.println(bob.getName());
        System.out.println(julie.getName());
        System.out.println(laure.getName());
    }
}
